#ifndef INPUTDIALOG_H
#define INPUTDIALOG_H

#include <vector>
#include <QDialog>

namespace Ui {
class InputDialog;
}

class InputDialog : public QDialog
{
    Q_OBJECT
public:
    explicit InputDialog(QWidget *parent = nullptr, int num_of_elem = 20);
    ~InputDialog();

    void init(int num_of_elem);

signals:
    void deliverArray(const std::vector<size_t> &arr);

public slots:
    void tooltip(const QModelIndex &index);

private:
    std::vector<size_t> getArray();

private:
    Ui::InputDialog *ui;
    int row_cnt, column_cnt;
};

#endif // INPUTDIALOG_H
